import axios from '@/libs/api.request'

export const saveSite = (data) => {
    return axios.request({
        url: 'site/setting',
        data,
        method: 'post'
    })
}
export const bookingHandle = (data) => {
    return axios.request({
        url: 'booking/handle',
        data,
        method: 'post'
    })
}

export const getMySite = (siteId = 0) => {
    return axios.request({
        url: 'site/get?type=my' + '&site_id=' + siteId
    })
}
export const deleteSite = (siteId = '') => {
    return axios.request({
        url: 'site/delete?siteId=' + siteId
    })
}

export const bookingManege = (siteId, page = 1, size = '10', status = 0) => {
    return axios.request({
        url: 'booking/manege?siteId=' + siteId + '&size=' + size + '&page=' + page + '&status=' + status
    })
}
